/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pfc.modeloer;

/**
 *
 * @author xandru
 */


public class OneToManyRelationShip extends ERRelationShip{
  private EREntity oneEntity;
  private EREntity manyEntity;
  private String directRelationName;
  private String reverseRelationName;

  public OneToManyRelationShip()
    {
      setType( ERRelationShip.RelationType.OneToMany.toString());
    }

    public EREntity getManyEntity() {
        return manyEntity;
    }

    public void setManyEntity(EREntity manyEntity) {
        this.manyEntity = manyEntity;
    }

    public EREntity getOneEntity() {
        return oneEntity;
    }

    public void setOneEntity(EREntity oneEntity) {
        this.oneEntity = oneEntity;
    }

    public String getDirectRelationName() {
        return directRelationName;
    }

    public void setDirectRelationName(String directRelationName) {
        this.directRelationName = directRelationName;
    }

    public String getReverseRelationName() {
        return reverseRelationName;
    }

    public void setReverseRelationName(String reverseRelationName) {
        this.reverseRelationName = reverseRelationName;
    }




}
